package com.cjl.multi_thread.share_cooperate;

public class MultiStatusChange {

    public static void main(String[] args) {

        Thread threada = new Thread("a"){
            @Override
            public void run() {
                try {
                    Thread.sleep(100);
                    System.out.println("MultiStatusChange.run a");
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        };
        threada.start();

        Thread threadb = new Thread("b"){
            @Override
            public void run() {
                try {
                    Thread.sleep(200);
                    System.out.println("MultiStatusChange.run b");
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        };
        threadb.start();

    }

}
